body {
    background-color: #F34E4C;
}

.back {
    position: absolute;
    left: 0.32rem;
    top: 3%;
    width: 0.22rem;
    height: 0.4rem;
}

.top-bg {
    width: 100%;
    height: 7.5rem;
    position: relative;
    z-index: -1;
}

.title {
    position: absolute;
    left: 50%;
    top: 6%;
    transform: translateX(-50%);
    width: 5rem;
    height: 1rem;
}

.lottery-wrapper {
    height: 7rem;
    margin: 0.2rem 0.4rem 0;
    position: relative;
    padding: 0.5rem 0.4rem;
    box-sizing: border-box;
}

.lottery-wrapper .bg {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.lottery-wrapper .lottery-wrapper-main {
    margin-top: -0.12rem;
    width: 100%;
    height: 100%;
    padding: 0.15rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.18rem 0.09rem;
    position: relative;
}

.lottery-wrapper .lottery-wrapper-main .item {
    border-radius: 6px;
    background-color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 0.1rem;
}

.lottery-wrapper .lottery-wrapper-main .item .product-pic {
    width: 0.8rem;
    height: 0.8rem;
}

.lottery-wrapper .lottery-wrapper-main .item .name {
    color: #E74403;
    font-size: 0.24rem;
}

.lottery-wrapper .lottery-wrapper-main .item:after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-color: #F99A64;
    position: absolute;
    top: 0.09rem;
    left: 0;
    z-index: -1;
}

.lottery-wrapper .lottery-wrapper-main.lottery-progress {
    pointer-events: none;
}

.lottery-wrapper .lottery-wrapper-main.lottery-progress .item:not(.active):before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-color: #00000090;
    position: absolute;
    top: 0;
    left: 0;
}

.lottery-wrapper .lottery-wrapper-main.lottery-progress .item:not(.active):after {
    background-color: #F99A6430;
}

.lottery-wrapper .lottery-wrapper-main .item:nth-child(5) {
    background-color: #F76928;
    font-size: 0.54rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.1rem;
    line-height: 0.64rem;
}

.button {
    margin: 0.28rem 0.4rem 2rem 0.28rem;
    background-color: #FFB731;
    border-radius: 0.56rem;
    padding: 0.24rem 0;
    text-align: center;
    font-size: 0.28rem;
    color: #fff;
}

.lottery-record {
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.4rem 0.5rem;
    padding: 0.28rem 0 0.38rem;
    border-radius: 0.2rem;
}

.lottery-record .record-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E74403;
    width: 60%;
    margin: 0 auto;
    padding: 0.12rem 0;
    border-radius: 0.32rem;
    column-gap: 0.22rem;
    color: #fff;
    font-size: 0.28rem;
}

.lottery-record .record-button .icon {
    width: 0.34rem;
    height: 0.22rem;
}

.carousel-wrapper {
    margin: 0.24rem 0.94rem 0;
    height: 5.2rem;
    overflow: hidden;
}

.carousel-wrapper .carousel, .carousel-wrapper .carousel-two {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    row-gap: 0.12rem;
    padding-bottom: 0.12rem;
}

.carousel-wrapper .carousel .item,
.carousel-wrapper .carousel-two .item {
    color: #fff;
    font-size: 0.22rem;
}

.overlay {
    position: fixed;
    z-index: 9;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00000080;
}

.result-content-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    width: calc(100% - 1.2rem * 2);
    border-radius: 0.2rem;
    background-image: linear-gradient(180deg, #FB9281 0%, #F5594A 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.86rem 0 0.6rem;
    box-sizing: border-box;
}

.result-content-wrapper:after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 0.2rem);
    height: calc(100% - 0.2rem);
    background-color: #fff;
    border-radius: 0.2rem;
    z-index: -1;
}

.result-content-wrapper .subtitle {
    font-size: 0.36rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.result-content-wrapper .product-pic {
    width: 1rem;
    height: 1rem;
    margin-bottom: 0.2rem;
}

.result-content-wrapper .name {
    font-size: 0.24rem;
}

.result-content-wrapper .finish {
    margin-top: 0.6rem;
    font-size: 0.28rem;
    color: #fff;
    background-color: #F24F4C;
    padding: 0.18rem 0.48rem;
    border-radius: 0.08rem;
    border: 2px solid #FF9C3D;
}

.record-content {
    width: calc(100% - 0.6rem * 2);
    background-color: #ffffff;
    border-radius: 0.2rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding-bottom: 0.4rem;
}

.record-content .subtitle {
    margin: 0 auto;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 0.76rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    font-size: 0.28rem;
}

.record-content .subtitle img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0.05rem;
    z-index: -1;
}

.record-content .close {
    width: 0.64rem;
    height: 0.64rem;
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(30%, -30%);
}

.record-content .list .item {
    padding: 0.16rem 0.36rem;
    font-size: 0.26rem;
}

.record-content .list .item:nth-child(2n) {
    background-color: #F3F3F5;
}

.footer {
    bottom: 0;
    width: 100%;
    display: flex;
    position: fixed;
    height: 50px;
    font-size: 0.23rem;
    align-items: center;
    background-color: #fff;
    z-index: 1;
}
.footer li {
    flex: 1;
}
.footer li a {
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #BDBDBD;
}
.footer .active a {
    color: #ec1b24;
}
.footer img {
    width: 0.535rem;
    height: 0.535rem;
}